﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ClientApplication
{
    public partial class ProcessBarWin : Form
    {
        public ProcessBarWin()
        {
            InitializeComponent();
        }

        public int ProgressValue
        {
            get { return this.progressBar1.Value; }
            set { progressBar1.Value = value; }
        }

        public void Increase(int nValue)
        {
            if (nValue > 0)
            {
                if (nValue < progressBar1.Maximum)
                {
                    progressBar1.Value = nValue;
                    //return true;
                }
                else
                {
                    progressBar1.Value = progressBar1.Maximum;
                    //return false;
                }
            }
            //return false;
        }
    }
}
